package com.anxin.registerManagement.bean.persist;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author 叶前呈
 * @date 2022/1/29 16:36
 */
@Data
@ApiModel("房间表")
public class Room extends CommonData {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("房间id")
    private Integer id;

    @NotNull(message = "宿舍id不能为空")
    @ApiModelProperty("宿舍id")
    private Integer dormitoryId;

    @NotNull(message = "门牌号不能为空")
    @ApiModelProperty("门牌号，如510")
    private Integer tablet;

    @ApiModelProperty("是否空闲")
    private Boolean isFree;

    @NotNull(message = "床位不能为空")
    @ApiModelProperty("床位，如1、2、3")
    private Integer bedNumber;

}
